.class public final Lkairo/android/c/g;
.super Ljava/lang/Object;


# static fields
.field protected static a:I

.field protected static b:I

.field private static c:Ljava/lang/String;

.field private static g:Lkairo/android/i/e;

.field private static h:Lkairo/android/i/e;


# instance fields
.field private d:Ljava/lang/String;

.field private e:I

.field private f:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput v0, Lkairo/android/c/g;->a:I

    sput v0, Lkairo/android/c/g;->b:I

    const/4 v0, 0x0

    sput-object v0, Lkairo/android/c/g;->c:Ljava/lang/String;

    new-instance v0, Lkairo/android/i/e;

    invoke-direct {v0}, Lkairo/android/i/e;-><init>()V

    sput-object v0, Lkairo/android/c/g;->g:Lkairo/android/i/e;

    new-instance v0, Lkairo/android/i/e;

    invoke-direct {v0}, Lkairo/android/i/e;-><init>()V

    sput-object v0, Lkairo/android/c/g;->h:Lkairo/android/i/e;

    return-void
.end method

.method private constructor <init>(IZ)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lkairo/android/c/g;->d:Ljava/lang/String;

    iput-object v0, p0, Lkairo/android/c/g;->d:Ljava/lang/String;

    const/4 v0, 0x3

    iput v0, p0, Lkairo/android/c/g;->e:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lkairo/android/c/g;->f:Z

    return-void
.end method

.method public static a(Ljava/lang/String;)V
    .locals 2

    const/4 v0, 0x2

    sput v0, Lkairo/android/c/g;->a:I

    const/16 v0, 0x8

    sput v0, Lkairo/android/c/g;->b:I

    sput-object p0, Lkairo/android/c/g;->c:Ljava/lang/String;

    const-string v0, "/"

    invoke-virtual {p0, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lkairo/android/c/g;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/c/g;->c:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method public static b(Ljava/lang/String;)[B
    .locals 10

    const/4 v8, 0x3

    const/4 v7, 0x2

    const/4 v3, 0x0

    const/4 v4, -0x1

    const/4 v1, 0x0

    const-string v9, "LoadDat"
    invoke-static {v9}, Lcom/liyong/test/Util;->LogWhat(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/liyong/test/Util;->LogWhat(Ljava/lang/String;)V


    invoke-static {p0}, Lkairo/a/a/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :try_start_0
    new-instance v2, Lkairo/android/c/g;

    const/4 v5, 0x3

    const/4 v6, 0x0

    invoke-direct {v2, v5, v6}, Lkairo/android/c/g;-><init>(IZ)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :try_start_1
    invoke-static {v0}, Lkairo/a/a/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget v5, v2, Lkairo/android/c/g;->e:I

    if-ne v5, v7, :cond_3

    invoke-static {v0}, Lkairo/a/a/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iget v0, v2, Lkairo/android/c/g;->e:I

    if-ne v0, v7, :cond_1

    :goto_0
    sget-object v0, Lkairo/android/c/g;->g:Lkairo/android/i/e;

    iget v0, v0, Lkairo/android/i/e;->b:I

    if-ge v3, v0, :cond_1

    sget-object v0, Lkairo/android/c/g;->g:Lkairo/android/i/e;

    iget-object v0, v0, Lkairo/android/i/e;->c:[Ljava/lang/Object;

    aget-object v0, v0, v3

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v5, v0}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_0

    move v0, v3

    :goto_1
    if-eq v0, v4, :cond_2

    sget-object v3, Lkairo/android/c/g;->h:Lkairo/android/i/e;

    iget-object v3, v3, Lkairo/android/i/e;->c:[Ljava/lang/Object;

    aget-object v0, v3, v0

    check-cast v0, [B
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :goto_2
    iput-object v1, v2, Lkairo/android/c/g;->d:Ljava/lang/String;

    #dat 文件读取
    #invoke-static {v0}, Lcom/liyong/test/Util;->LogByteArr([B)V

    return-object v0

    :cond_0
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_1
    move v0, v4

    goto :goto_1

    :cond_2
    move-object v0, v1

    goto :goto_2

    :cond_3
    :try_start_2
    iget v3, v2, Lkairo/android/c/g;->e:I

    if-ne v3, v8, :cond_4

    #decode file or string
    invoke-static {v0}, Lkairo/android/c/a;->c(Ljava/lang/String;)[B
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    move-result-object v0

    goto :goto_2

    :cond_4
    move-object v0, v1

    goto :goto_2

    :catchall_0
    move-exception v0

    move-object v2, v1

    :goto_3
    if-eqz v2, :cond_5

    iput-object v1, v2, Lkairo/android/c/g;->d:Ljava/lang/String;

    :cond_5
    throw v0

    :catchall_1
    move-exception v0

    goto :goto_3
.end method
